#!/bin/bash
gcc Combination.c -o Combination
./Combination 14 >CombinationOutput.txt
rm Combination.o CombinationResult.txt
while read line         
do
    currentline=`echo $line`
    #args=number of arggument in the line -1
    args=`echo $currentline | sed "s: : \n:g" | grep -c " "`
    let args=args+1
    #echo $args $currentline
    let args=args+9 #9=number of hrdcoded arguments
    echo "./Predict.sh DATABASE.csv $args 3 4 $currentline"
    ./Predict.sh DATABASE.csv $args 3 4 5 6 7 8 9 10 11 $currentline
    echo "3 4 5 6 7 8 9 10 11 $currentline" >>CombinationResult.txt
done <CombinationOutput.txt
